<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"></meta>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"></meta>
    <title>见证报告</title>
</head>

<body>
<style>
    .content {
        max-width: 1000px;
        width: 100%;
        margin: 0 auto;
        font-size: 14px;
    }

    .title {
        width: 100%;
        text-align: center;
    }

    .details {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .indent1 {
        line-height: 8px;
    }

    .indenss {
        margin-top: 800px;
    }

    .indent2 {
        text-align: right;
        line-height: 36px;
    }

    .span {
        font-weight: bold;
        font-size: 18px;
    }

    .spanh3 {
        font-weight: bold;
        font-size: 18px;
    }

    .content .main {
        font-size: 18px;
        letter-spacing: 2px;
        margin: 40px;
        /*height: 1550px;*/
        page-break-after:always;
    }

    .content .mainb {
        font-size: 18px;
        letter-spacing: 2px;
        margin: 20px;
        page-break-after:always;
        /*height: 1550px;*/
    }

    .content .mainc {
        font-size: 18px;
        letter-spacing: 2px;
        margin: 20px;
    }

    .content .maind {
        font-size: 18px;
        letter-spacing: 2px;
        margin: 20px;
    }

    .content .maine {
        font-size: 18px;
        letter-spacing: 2px;
        margin: 20px;
    }

    .content .mainf {
        font-size: 14px;
        letter-spacing: 2px;
        margin: 20px;
    }

    .content .mainc .box div {
        font-size: 14px;
        display: inline-block;
    }

    .content .maind .box div {
        font-size: 14px;
        display: inline-block;
    }

    .content .mainf .box div {
        font-size: 14px;
        display: inline-block;
    }

    .content .maine .box div {
        font-size: 14px;
        display: inline-block;
    }

    .table-data {
        width: 100%;
        font-size: 14px;
        color: #333;
        border-left: 1px solid #ccc;
        border-top: 1px solid #ccc;
        margin-bottom: 20px;
    }
    .table-dataa {
        width: 100%;
        font-size: 14px;
        color: #333;
        border-left: 1px solid #ccc;
        border-top: 1px solid #ccc;
        margin-bottom: 20px;
    }

    .table-datajz {
        width: 100%;
        font-size: 14px;
        color: #333;
        border-left: 1px solid #ccc;
        border-top: 1px solid #ccc;
        margin-bottom: 20px;
    }

    .table-datajz th, .table-datajz td {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 8px 10px;
    }

    .table-data th, .table-data td {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 8px 10px;
    }
    .table-dataa th, .table-dataa td {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 8px 10px;
    }

    .table-dataa th, .table-dataa td:nth-child(1) {
        background-color: #e3e3ff;
        font-weight: bold;
    }

    .table-datas tr:nth-child(3) td:nth-child(2) {
        border-right: none;
    }

    .table-datas tr:nth-child(3) td:nth-child(3) {
        border-right: none;
        border-left: none;
    }

    .table-datas tr:nth-child(6) td:nth-child(2) {
        border-right: none;
    }

    .table-datas tr:nth-child(6) td:nth-child(3) {
        border-right: none;
        border-left: none;
    }

    .table-datajz th {
        background-color: #e3e3ff;
        color: #000;
        font-weight: normal;
        text-align: left;
        padding: 10px;
    }
    /* .table-data tr:nth-child(1) th {
        background-color: #0000b8;
        color: #fff;
        font-weight: normal;
        text-align: left;
        padding: 10px;
    } */
    .table-datas th {
        background-color: #e3e3ff;
        color: #000;
        font-weight: bold;
        text-align: left;
        padding: 10px;
    }
    /* .table-datass th {
        background-color: #e3e3ff;
        color: #000;
        font-weight: bold;
        text-align: left;
        padding: 10px;
    } */

    .table-datas {
        width: 100%;
        font-size: 14px;
        color: #333;
        border-left: 1px solid #ccc;
        border-top: 1px solid #ccc;
        margin-bottom: 20px;
    }

    .table-datas th, .table-datas td {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 8px 10px;
    }

    .table-datass {
        width: 100%;
        font-size: 14px;
        color: #333;
        border-left: 1px solid #ccc;
        border-top: 1px solid #ccc;
        /* margin-bottom: 20px; */
    }

    .table-datass th, .table-datass td {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 8px 8px;
    }

    .box {
        display: flex;
        background-color: #4f4fff;
        color: #fff;
        padding: 10px;
        justify-content: space-between;
    }

    .box div {
        display: inline-block;
    }

    .box div span {
        margin-left: 30px;
    }

    .boxSpan {
        text-align: right;
    }

    .footer-table td {
        vertical-align: top;
    }
</style>
<div class="content">
    <div class="main">
        <h3 class="title">福建省公共资源交易中心见证报告</h3>
        <hr style=" height:2px;border:none;border-top:2px solid #000;width:35%"/>
        <h4 class="title">报告编号：闽省交易证【2022】-001</h4>
        <div class="details">
            <p class="title">图片</p>
        </div>
    </div>
    <div class="mainb">
        <h3 class="indent">项目信息</h3>
        <hr style=" height:2px;border:none;border-top:2px solid #000;"/>
        <div class="details">
            <p class="indent"><span class="span">项目名称：</span>${projectName?default('')?html } </p>
            <p class="indent"><span class="span">项目编号：</span>${projectCode?default('')?html } </p>
            <p class="indent"><span class="span">标段名称：</span>${bidSectionName?default('')?html } </p>
            <p class="indent"><span class="span">标段编号：</span>${bidSectionCode?default('')?html } </p>
            <p class="indent"><span class="span">开标时间：</span>${bidOpenStartTime?default('')?html } </p>
            <p class="indent"><span class="span">评标时间：</span>${evaluationStartTime?default('')?html } </p>
            <p class="indent"><span class="span">见证报告生成时间：</span>${reportCreateTime?default('')?html } </p>
            <p class="indenss">
            <p class="indent2">福建省公共资源交易中心</p>
            <p class="indent2">（盖章）</p>
            </p>

        </div>
    </div>
    <div class="mainc">
        <h3 class="indent">第一部分：见证记录概要</h3>
        <h3 class="indent1">见证信息</h3>
        <p class="indent1">共 ${infoRecordCount?default('')?html } 条：系统记录 ${systemCount?default('')?html }
            条、人工记录 ${peopleCount?default('')?html } 条 </p>
        <div class="details">
            <table class="table-data" border="0" cellpadding="0" cellspacing="0" >
                <tbody>
                <tr>
                    <th width="10%" style="background-color: #090977;font-weight: normal; color: #fff;text-align: center;height: 30px;" >阶段</th>
                    <th width="50%" style="background-color: #090977;font-weight: normal; color: #fff;text-align: center;height: 30px;">交易时间</th>
                    <th width="20%" style="background-color: #090977;font-weight: normal; color: #fff;text-align: center;height: 30px;">见证人</th>
                    <th width="10%" style="background-color: #090977;font-weight: normal; color: #fff;text-align: center;height: 30px;">见证结果</th>
                    <th width="10%" style="background-color: #090977;font-weight: normal; color: #fff;text-align: center;height: 30px;">见证信息数量</th>
                </tr>
                <#list infoList as info >
                    <tr>
                        <th style="text-align: center;height: 24px;">${info.stage}</th>
                        <th style="text-align: center;height: 24px;">${info.witnessTime}</th>
                        <th style="text-align: center;height: 24px;">${info.witnessUserName}</th>
                        <th style="text-align: center;height: 24px;">${info.witnessResult}</th>
                        <th style="text-align: center;height: 24px;">${info.infoCount}</th>
                    </tr>
                </#list>

                </tbody>
            </table>
            <h3 class="indent1">预警信息</h3>
            <p class="indent1">共 ${warnRecordCount?default('')?html } 条：系统判定 ${warnSystemCount?default('')?html }
                条、人工判定 ${warnPeopleCount?default('')?html } 条 </p>
            <#list warnInfoList as warn >
                <#if warn.warnCount gt 0>
                    <h3 class="spanh3">${warn.stage}（${warn.warnCount} 条）</h3>
                    <div class="box">
                        <div>预警事项：${warn.warnName}</div>
                        <div class="boxSpan">
                            <span>预警来源：${warn.warnSource}</span>
                        </div>
                    </div>
                    <table class="table-dataa" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                        <tr>
                            <td>预警时间</td>
                            <td>${warn.warnTime}</td>
                        </tr>
                        <tr>
                            <td>预警信息</td>
                            <td>${warn.warnContent}</td>
                        </tr>
                        </tbody>
                    </table>
                </#if>
            </#list>
        </div>
    </div>
    <div class="maind">
        <h3 class="indent">第二部分：项目基本信息</h3>
        <h3 class="indent1">招标基本信息</h3>
        <div class="details">
            <table class="table-datas" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                <tr>
                    <th style="text-align: center;height: 24px;">项目名称</th>
                    <td style="text-align: center;height: 24px;">${projectName?default('')?html }
                    </td>
                    <th style="text-align: center;height: 24px;">项目编号</th>
                    <td style="text-align: center;height: 24px;">${projectCode?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">标段名称</th>
                    <td style="text-align: center;height: 24px;">${bidSectionName?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">标段编号</th>
                    <td style="text-align: center;height: 24px;">${bidSectionCode?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">项目来源</th>
                    <td style="text-align: center;height: 24px;">${sourceSystemName?default('')?html }</td>
                    <td style="text-align: center;height: 24px;"></td>
                    <td style="text-align: center;height: 24px;"></td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">行业类型</th>
                    <td style="text-align: center;height: 24px;">${industryType?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">行业类别</th>
                    <td style="text-align: center;height: 24px;">${industry?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">交易方式</th>
                    <td style="text-align: center;height: 24px;">${tenderMode?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">资审方式</th>
                    <td style="text-align: center;height: 24px;">${qualificationExamMethod?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">监管单位</th>
                    <td style="text-align: center;height: 24px;">${superviseDept?default('')?html }</td>
                    <td style="text-align: center;height: 24px;"></td>
                    <td style="text-align: center;height: 24px;"></td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">招标单位</th>
                    <td style="text-align: center;height: 24px;">${tendererName?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">统一社会信用代码</th>
                    <td style="text-align: center;height: 24px;">${tendererCode?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">招标单位联系人</th>
                    <td style="text-align: center;height: 24px;">${tendererUserName?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">联系电话</th>
                    <td style="text-align: center;height: 24px;">${tendererContact?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">代理机构</th>
                    <td style="text-align: center;height: 24px;">${tenderAgencyName?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">统一社会信用代码</th>
                    <td style="text-align: center;height: 24px;">${tenderAgencyCode?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">代理机构联系人</th>
                    <td style="text-align: center;height: 24px;">${tenderAgencyUserName?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">联系电话</th>
                    <td style="text-align: center;height: 24px;">${tenderAgencyContact?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">开标日期</th>
                    <td style="text-align: center;height: 24px;">${bidOpenStartTime?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">开标地点</th>
                    <td style="text-align: center;height: 24px;">${bidOpenAddress?default('')?html }</td>
                </tr>
                <tr>
                    <th style="text-align: center;height: 24px;">评标日期</th>
                    <td style="text-align: center;height: 24px;">${evaluationStartTime?default('')?html }</td>
                    <th style="text-align: center;height: 24px;">评标地点</th>
                    <td style="text-align: center;height: 24px;">${evaluationAddress?default('')?html }</td>
                </tr>
                </tbody>
            </table>
        </div>
        <h3 class="indent1">中标基本信息</h3>
        <div class="details">
            <table class="table-datass" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                <tr>
                    <td style="text-align: center;height: 24px; background-color: #e3e3ff;font-weight: bold; color: #000;">中标单位</td>
                    <td style="text-align: center;height: 24px;">${winBidderName?default('')?html }</td>
                    <td style="text-align: center;height: 24px; background-color: #e3e3ff;font-weight: bold; color: #000;">统一社会信用代码</td>
                    <td style="text-align: center;height: 24px;">${winBidderCode?default('')?html }</td>
                </tr>
                <tr>
                    <td style="text-align: center;height: 24px; background-color: #e3e3ff;font-weight: bold; color: #000;">中标金额</td>
                    <td style="text-align: center;height: 24px;">${bidAmount?default('')?html } 元</td>
                    <td style="text-align: center;height: 24px; background-color: #e3e3ff;font-weight: bold; color: #000;">中标工期</td>
                    <td style="text-align: center;height: 24px;">${winBidPeriod?default('')?html } 天</td>
                </tr>
                <tr>
                    <td style="text-align: center;height: 24px; background-color: #e3e3ff;font-weight: bold; color: #000;">中标公示日期</td>
                    <td style="text-align: center;height: 24px;">${winCandidateSendTime?default('')?html }</td>
                    <td style="text-align: center;height: 24px; background-color: #e3e3ff;font-weight: bold; color: #000;">中标公告日期</td>
                    <td style="text-align: center;height: 24px;">${winBidNoticeSendTime?default('')?html }</td>
                </tr> 
                </tbody>
            </table>

        </div>
    </div>


    <div class="mainf">
        <h3 class="indent">第三部分：见证记录</h3>
        <#list recordList as record >
            <h3 class="indent1">${record.stage}</h3>
            <p class="indent1">共 ${record.infoCount} 条：见证信息 ${record.infoCount} 条、预警信息 ${record.warnCount} 条 </p>
            <div class="details">
                <table class="table-datas" border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    <tr>
                        <th style="text-align: center;height: 24px;">见证结果</th>
                        <td style="text-align: center;height: 24px;">${record.result}</td>
                        <th style="text-align: center;height: 24px;">见证人</th>
                        <td style="text-align: center;height: 24px;">${record.witnessUserName}</td>
                    </tr>
                    <tr>
                        <th style="text-align: center;height: 24px;">交易时间</th>
                        <td style="text-align: center;height: 24px;">${record.recordTime}</td>
                        <th style="text-align: center;height: 24px;">审核人</th>
                        <td style="text-align: center;height: 24px;">${record.operateUserName}</td>
                    </tr>
                    </tbody>
                </table>
                <#list record.witnessRecordReturnList as witness >

                    <div class="box" style="height:30px;">
                        <div>${witness_index+1}、${witness.itemName}</div>
                        <div class="boxSpan"><span>状态：${witness.itemStatus}</span>&nbsp;&nbsp;&nbsp;
                            <span>确认人：${witness.confirmUserName}</span>
                        </div>
                    </div>
                    <table class="table-datajz" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                        <tr>
                            <th width="10%"  style="text-align: center;height:24px;">序号</th>
                            <th width="50%"  style="text-align: center;height:24px;">信息记录</th>
                            <th width="10%"  style="text-align: center;height:24px;">状态</th>
                            <th width="30%"  style="text-align: center;height:24px;">记录时间</th>
                            <th width="10%"  style="text-align: center;height:24px;">来源</th>
                        </tr>
                        <#list witness.infoRecord as inf >
                            <tr>
                                <td style="text-align: center;height:24px;">${witness_index+1}.${inf_index+1}</td>
                                <td style="text-align: center;height:24px;">${inf.witnessInfoContent}</td>
                                <td style="text-align: center;height:24px;">${inf.witnessStatus}</td>
                                <td style="text-align: center;height:24px;">${inf.operateTime}</td>
                                <td style="text-align: center;height:24px;">${inf.systemName}</td>
                            </tr>
                        </#list>
                        </tbody>
                    </table>
                </#list>
            </div>
        </#list>
    </div>
</div>
</body>
</html>
